#include "Number.h"

decimal_t multiple_digit = 0.0;
Number    num1;
Number    num2;
uint8     i;

/**
 * 向 Number 中增加一个数字
 */
void
number_pull (uint8 num)
{
        if (num1.type == N_TYPE_INTEGER) {
                num1.number.l *= 10;
                num1.number.l += num;
                return;
        }
        /*载入浮点数字*/
        if (multiple_digit == 0.0)
                multiple_digit = 10.0;
        else
                multiple_digit *= 10.0;
        num1.number.f += ((float)num / multiple_digit);
}